package com.study.shengsiyuan.example11;
import io.netty.util.NettyRuntime;
import io.netty.util.internal.SystemPropertyUtil;

public class Test {
	@org.junit.Test
	public void test() {
		//获取宿主机的线程数
		int i=Math.max(1, SystemPropertyUtil.getInt(
                "io.netty.eventLoopThreads", NettyRuntime.availableProcessors() * 2));
	System.out.println(i);
	System.out.println(NettyRuntime.availableProcessors());
	}
}
